Optimal. Leaf size=57 \[ \frac {b^2}{a^3 d (a \cos (c+d x)+b)}+\frac {2 b \log (a \cos (c+d x)+b)}{a^3 d}-\frac {\cos (c+d x)}{a^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {3872, 2833, 12, 43} \[ \frac {b^2}{a^3 d (a \cos (c+d x)+b)}+\frac {2 b \log (a \cos (c+d x)+b)}{a^3 d}-\frac {\cos (c+d x)}{a^2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 43
Rule 2833
Rule 3872
Rubi steps
\begin {align*} \int \frac {\sin (c+d x)}{(a+b \sec (c+d x))^2} \, dx &=\int \frac {\cos ^2(c+d x) \sin (c+d x)}{(-b-a \cos (c+d x))^2} \, dx\\ &=\frac {\operatorname {Subst}\left (\int \frac {x^2}{a^2 (-b+x)^2} \, dx,x,-a \cos (c+d x)\right )}{a d}\\ &=\frac {\operatorname {Subst}\left (\int \frac {x^2}{(-b+x)^2} \, dx,x,-a \cos (c+d x)\right )}{a^3 d}\\ &=\frac {\operatorname {Subst}\left (\int \left (1+\frac {b^2}{(b-x)^2}-\frac {2 b}{b-x}\right ) \, dx,x,-a \cos (c+d x)\right )}{a^3 d}\\ &=-\frac {\cos (c+d x)}{a^2 d}+\frac {b^2}{a^3 d (b+a \cos (c+d x))}+\frac {2 b \log (b+a \cos (c+d x))}{a^3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.18, size = 76, normalized size = 1.33 \[ \frac {-a^2 \cos ^2(c+d x)+b^2 (2 \log (a \cos (c+d x)+b)+1)+a b \cos (c+d x) (2 \log (a \cos (c+d x)+b)-1)}{a^3 d (a \cos (c+d x)+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.61, size = 75, normalized size = 1.32 \[ -\frac {a^{2} \cos \left (d x + c\right )^{2} + a b \cos \left (d x + c\right ) - b^{2} - 2 \, {\left (a b \cos \left (d x + c\right ) + b^{2}\right )} \log \left (a \cos \left (d x + c\right ) + b\right )}{a^{4} d \cos \left (d x + c\right ) + a^{3} b d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.25, size = 61, normalized size = 1.07 \[ -\frac {\cos \left (d x + c\right )}{a^{2} d} + \frac {2 \, b \log \left ({\left | -a \cos \left (d x + c\right ) - b \right |}\right )}{a^{3} d} + \frac {b^{2}}{{\left (a \cos \left (d x + c\right ) + b\right )} a^{3} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.07, size = 75, normalized size = 1.32 \[ -\frac {b}{d \,a^{2} \left (a +b \sec \left (d x +c \right )\right )}+\frac {2 b \ln \left (a +b \sec \left (d x +c \right )\right )}{d \,a^{3}}-\frac {1}{d \,a^{2} \sec \left (d x +c \right )}-\frac {2 b \ln \left (\sec \left (d x +c \right )\right )}{d \,a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.71, size = 55, normalized size = 0.96 \[ \frac {\frac {b^{2}}{a^{4} \cos \left (d x + c\right ) + a^{3} b} - \frac {\cos \left (d x + c\right )}{a^{2}} + \frac {2 \, b \log \left (a \cos \left (d x + c\right ) + b\right )}{a^{3}}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.02, size = 60, normalized size = 1.05 \[ \frac {b^2}{d\,\left (\cos \left (c+d\,x\right )\,a^4+b\,a^3\right )}-\frac {\cos \left (c+d\,x\right )}{a^2\,d}+\frac {2\,b\,\ln \left (b+a\,\cos \left (c+d\,x\right )\right )}{a^3\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sin {\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________